<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        img {
            width: 300px;
        }
    </style>
</head>
<body>
    <button id="jay">苏丽敏1</button>
    <button id="eason">苏丽敏2</button>
    <br />

    <img src="./img/meinu1.jpeg" alt="苏丽敏1">

    <script>
        // 修改元素属性 ：ele.属性 = value  如 src, title, id, name, href

        let jay = document.querySelector('#jay');
        let eason = document.querySelector('#eason');
        let img = document.querySelector('img');
        console.log(img.src);
        console.log(img.title);
        jay.onclick = function () {
        img.src = './img/meinu1.jpeg';
        img.title = '苏丽敏1';
        }

        eason.onclick = function () {
            img.src = './img/meinu2.jpeg';
            img.title = '苏丽敏2';
        }
    </script>
</body>
</html>